package cn.xiaopengstack.domain.activity.model.entity;

import cn.xiaopengstack.domain.activity.model.valobj.UserRaffleOrderStateVO;
import cn.xiaopengstack.domain.strategy.model.entity.StrategyEntity;
import cn.xiaopengstack.domain.strategy.model.entity.UserEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jiangyangang
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserRaffleOrderEntity implements Serializable {
    /** 用户ID */
    private String userId;
    /**
     * 活动实体
     */
    private RaffleActivityEntity activityEntity;
    /** 抽奖策略ID */
    private String activityName;
    /** 订单ID */
    private Long strategyId;
    /** 下单时间 */
    private String orderId;
    /** 订单状态；create-创建、used-已使用、cancel-已作废 */
    private Date orderTime;
    /** 创建时间 */
    private UserRaffleOrderStateVO orderState;

}
